<?php

namespace App\Http\Controllers\Auth;

use App\Http\Common\Globals;
use App\Http\Common\MyUtils;
use App\Models\My\PersonSetting;

class PersonSettingController extends RegisterController
{
    public function __construct()
    {
        parent::__construct();
        $this->model =  new PersonSetting();
    }

    public function update()
    {
        // 注册用户
        $this->request->request->set("id",MyUtils::getSessionIdKeep($request,"user_id"));
        $res = $this->postUpdate($this->request->all());
        if ($res){
            return MyUtils::dealFD(Globals::$success,1);
        }else{
            return MyUtils::dealFD(Globals::$error,-1);
        }
    }
}
